package com.lww.integral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lww.springcloudapi.entity.TabCommodity;
import com.lww.springcloudapi.entity.TabGradeLog;
import com.lww.springcloudapi.pojo.TabHallUsermessage;

import java.util.List;

/**
 * 积分兑换
 */
public interface ExchangeService {
    /**
     * 积分兑换
     *
     * @param phone 手机号
     * @param cid   商品id
     * @return
     */
    boolean findPointsExchange(String phone, Integer cid);

    /**
     * 查询所有记录
     *
     * @return
     */
    Page<TabGradeLog> findQuery(Integer pageNo, Integer pageSize);

    /**
     * 根据id删除记录
     *
     * @param id
     * @return
     */
    boolean findDelGradeLog(Integer id);
}
